package io.gitee.thinkbungee.mybatisSatellite.controller;

import io.gitee.thinkbungee.crud.mybatis.controller.SatelliteMybatisBaseController;
import io.gitee.thinkbungee.crud.mybatis.service.SatelliteMybatisBaseService;
import io.gitee.thinkbungee.mybatisSatellite.controller.dto.TestDto;
import io.gitee.thinkbungee.mybatisSatellite.controller.param.TestParam;
import io.gitee.thinkbungee.mybatisSatellite.entity.TestEntity;
import io.gitee.thinkbungee.mybatisSatellite.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试
 *
 * 提供增删改查方法:
 * 新增:               post        /
 * 查询列表(带参数参数):  get         /pageList
 * 删除:               delete      /{id}
 * 根据ids批量删除:      post        /delete/batch
 * 根据id查询:          get         /{id}
 * 根据id更新:          put         /
 *
 * @author chenyichang
 * @email 820117089@qq.com
 * @date 2022-05-25 18:33:03
 */
@RestController
@RequestMapping("mybatisSatellite/test")
public class TestController extends SatelliteMybatisBaseController<TestParam, TestEntity, TestDto> {

    @Autowired
    private TestService testService;

    @Override
    public SatelliteMybatisBaseService<TestParam, TestEntity> getService() {
        return testService;
    }

    @Override
    public TestEntity getEntity() {
        return new TestEntity();
    }

    @Override
    public TestDto getDTO() {
        return new TestDto();
    }
}
